#include "Queue.hh"

Queue::Queue()
: QueueCore(Signal::generate(CondVarType), new Chain)
{
	if (SignalOfEmptyEvent == NULL || ListOfObject == NULL)
		notifyError(0, "Fail build component in Queue::Queue.");
}

Queue::~Queue()
{
	if (SignalOfEmptyEvent != NULL)
		delete SignalOfEmptyEvent;
	
	if (ListOfObject != NULL)
		delete ListOfObject;
}
